package main

import "fmt"

func main() {
	var arr1 [5]int

	for i := 0; i < len(arr1); i++ {
		arr1[i] = i * 2
	}
	fmt.Println(arr1)
	for i := 0; i < len(arr1); i++ {
		fmt.Println(arr1[i])
	}
	for _, v := range arr1 {
		fmt.Println(v)

	}
	for i := 0; i < 3; i++ {
		fp(&[3]int{i, i * i, i * i * i})
	}
	for i := 0; i < rows; i++ {
		for j := 0; j < cols; j++ {
			fmt.Println(screen[i][j])
		}
	}

}

func fp(a *[3]int) {
	fmt.Println(a)
}

// 多维数组
const (
	rows = 3
	cols = 4
)

type pixel int

var screen [rows][cols]pixel
